package com.ribbon.lcn.servicea.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @InterfaceName AccountServiceClient
 * @author: Ribbon
 * @Date 2019/2/22 14:33
 **/
@FeignClient("service-b")
public interface AccountServiceClient {
    @GetMapping("debit")
    Integer debit(@RequestParam("userId") String userId, @RequestParam("money") int money);
}
